import { Dialog } from '@nutui/nutui'
export default function myconfirm(content: string = '确实删除该数据吗?') {
	return new Promise((resolve, reject) => {
		Dialog({
			id: 'publicDialog',
			popClass: 'publicComfirm',

			content,

			onCancel: () => {
				resolve(false)
			},
			onOk: () => {
				resolve(true)
			}
		})
	}).catch(() => {
		return false
	})
}
